package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IMsgList
import fhp.hlhj.giantfold.javaBean.MessageListBean
import fhp.hlhj.giantfold.module.MessageListModule

/**
 * Created by Administrator on 2018\2\8 0008.
 */
class MessageListPresenter(private val iMsgList: IMsgList) : MessageListModule.OnMsgListResp {


    private val module=MessageListModule()

    fun getList(params: HttpParams){
        module.getMsgList(params,this)
    }


    override fun showLoading() {
        iMsgList.showLoading()
    }

    override fun onResp(t: MessageListBean) {
        iMsgList.onResp(t)
    }
}